<?php
/**
* $Id: edit_del_article.php 144 2010-05-03 15:21:19Z bwanglei $
*/

include_once(TEMP_ROOT_PATH.'/header.php');
?>
<div id="content">
	<div id="main">
		你参与的主题：<br />
		<table width="100%" border=""><tr style="font-weight:bold;"><td>标题</td><td>发表时间</td><td>修改</td><td align="right">删除</td></tr>
		<?php
		foreach ($user_articles as $row) {
			?>
			<form action="<?php echo apf_full_url();?>" method="post">
			<tr><td><?php echo $row['title'];?></td><td><?php echo date('m月d日 Y年',$row['time_date']);?></td>
			<td><a href="<?php echo $apf_settings['base_url'];?>/root/edit_article.php?a_id=<?php echo $row['id'];?>">修改</a></td>
			<td align="right">
			<input type="hidden" name="article_id" value="<?php echo $row['id'];?>" />
			<input type="submit" onclick="return confirm('你确定要删除这个帖子吗？');" value="删除" /></td></tr></form>
			<?php
		}
		?>
		</table>

		<!-- 上一页 下一页 -->
		<div class="width_full">
			<div class="float_left clear_left width_half align_left">
				<?php
				if ($page_num>0) {
					?>
					<a href="<?php echo apf_full_url('page',$page_num-1,'page');?>">上一页</a>
					<?php
				}
				?>
			</div>
			<div class="float_right clear_right width_half align_right">
				<?php
				if ($page_num < ($page_count-1)) {
					?>
					<a href="<?php echo apf_full_url('page',$page_num+1,'page');?>">下一页</a>
					<?php
				}
				?>
			</div>
		</div>
	</div>
	<?php include_once(TEMP_ROOT_PATH.'/sidebar.php');?>
</div>
<?php include_once(TEMP_ROOT_PATH.'/footer.php');?>
